<template>
  <div id="check-button" :class="{ checked: isChecked }">
    <img src="~assets/images/cart/tick.svg" />
  </div>
</template>

<script>
export default {
  name: 'CheckButton',
  props: {
    isChecked: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style type="text/css" scoped>
#check-button {
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  border: 2px solid #aaa;
}
#check-button img {
  width: 100%;
  height: 100%;
}
.checked {
  background: red;
  border-color: red !important;
}
</style>
